const state = () => ({
  data: {
    login: {
      //入口配置
      domain: 'http://localhost:9999',
      baseUrl: '/baseUrl', //统一请求url
    },
  },
})
const getters = {
  data: (state) => state.data,
}
const mutations = {
  setData(state, data) {
    state.data = {
      ...state.data,
      ...data,
    }
  },
}
const actions = {
  setData({ commit }, data) {
    commit('setData', data)
  },
}
export default { state, getters, mutations, actions }
